package com.itheima.demo_junit;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/7/20 15:55
 */
public class Demo_002 {
    // 获取log4j对象.必须定义在成员位置!
    private static final Logger LOGGER = LoggerFactory.getLogger(Demo_002.class);

    public static void main(String[] args) {

        LOGGER.debug("debug日志");
        LOGGER.info("info日志");
        LOGGER.warn("WARN日志");
        LOGGER.error("error日志");
    }
}
